package cn.bdqn.applysystem.entity;

import org.springframework.stereotype.Component;

@Component("user")
public class User {
	
	private Integer id;			//用户ID
	private String userName;	//用户名称
	private String password;	//密码
	private String name;		//姓名
	private Integer userRole;	//角色ID
	private Integer deptId;		//部门ID
	private Integer gradeId;	//班级ID
	
	private Role role;
	
	public User(){}
	public User(Integer id, String userName, String password, String name,
			Integer userRole, Integer deptId, Integer gradeId) {
		super();
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.name = name;
		this.userRole = userRole;
		this.deptId = deptId;
		this.gradeId = gradeId;
	}
	
	
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getUserRole() {
		return userRole;
	}
	public void setUserRole(Integer userRole) {
		this.userRole = userRole;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public Integer getGradeId() {
		return gradeId;
	}
	public void setGradeId(Integer gradeId) {
		this.gradeId = gradeId;
	}
	
	
	
}
